﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Manager
{
    public class old_ExportData
    {
        private readonly DataAccess.old_ExportData _old_exportData;

        public old_ExportData()
        {
            _old_exportData = new DataAccess.old_ExportData();
        }


        /// <summary>
        /// 准备导出前的数据
        /// </summary>
        public void old_PrepareData(string tc_owr009)
        {
            _old_exportData.old_PrepareData(tc_owr009);
        }

        public void old_EndUpdData(string tc_owr009, string filename)
        {
            _old_exportData.old_EndUpdData(tc_owr009, filename);
        }

        /// <summary>
        /// 1.单据传输资料主档
        /// </summary>
        /// <param name="tc_owr009">物流公司代码</param>
        /// <param name="tc_owr002">单据编号</param>
        /// <param name="tc_owr006">单据日期</param>
        /// <returns></returns>

        public List<Model.old_OwrModel> old_PrepareOwrData(string tc_owr009, string tc_owr002, string tc_owr006, string tc_owr007)
        {
            return _old_exportData.old_PrepareOwrData(tc_owr009, tc_owr002, tc_owr006,tc_owr007);
        }

        /// <summary>
        /// 保存单据传输资料主档结果
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool old_SaveOwrData(Model.TC_OWF_FILE model)
        {
            return _old_exportData.old_SaveOwrData(model);
        }

        /// <summary>
        /// 2.单据传输资料折扣档
        /// </summary>
        /// <returns></returns>
        public List<Model.OwwModel> old_PrepareOwwData(string tc_owf001)
        {
            return _old_exportData.old_PrepareOwwData(tc_owf001);
        }

        /// <summary>
        /// 3.客户基本资料档
        /// </summary>
        /// <returns></returns>
        public List<Model.OccModel> old_PrepareOccData(string tc_owf001)
        {
            return _old_exportData.old_PrepareOccData(tc_owf001);
        }

        /// <summary>
        /// 4.客户货号关系资料档 
        /// </summary>
        /// <returns></returns>
        public List<Model.tc_obkModel> old_Preparetc_obkData(string tc_owf001)
        {
            return _old_exportData.old_Preparetc_obkData(tc_owf001);
        }

        /// <summary>
        /// 5.单据传输资料明细档
        /// </summary>
        /// <returns></returns>
        public List<Model.ImaModel> old_PrepareImaData(string tc_owf001)
        {
            return _old_exportData.old_PrepareImaData(tc_owf001);
        }

    }
}
